<?php
class PagesController extends AppController {
	var $name = 'Pages';
	var $helpers = array('Html');
	var $components = array('Init', 'Param');
	var $uses = array();

	function beforeFilter() {
		if (!$this->Session->read('admin')) {
			$this->redirect('/login');
		}
		else {
			$this->Init->startup($this);
			$this->Admin = $this->Init->init();

			// menu
			$this->set('dashboard',1);
			$this->set('content',0);
			$this->set('products',0);
			$this->set('component',0);
			$this->set('system',0);

			$this->set('title','Welcome, '.$this->Admin['User']['fullname']);
			$this->set('sub_title', '');
  		}
	}

	function index() {
		
	}
}
?>
